export default Vue=>{
    Vue.directive('red',{
        //el,binding
        bind(el){
            el.style.color = 'red'
        },
        inserted(el,binding){
            console.log('inserted',el,binding)
        },
        update(el,binding){
            console.log('update',el,binding)
        },
        componentUpdated(el,binding){
            console.log('componentUpdated',el,binding)
        },
        unbind(el,binding){
            console.log('unbind',el,binding)
        }
    })
}